<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN">
<head>
<link rel="stylesheet" href="<%=path%>/css/pc/bbs.css">
<script type="text/javascript" src="<%=path%>/js/pc/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/pc/nav.js"></script>
<script type="text/javascript" src="<%=path%>/js/pc/jigou.js"></script>
<title>论坛管理</title>
</head>
<body>
	<!--     头部公共部分   -->
      	<%@include file="../partpage/hander.jsp"%>
      <!--
        	作者：offline
        	时间：2016-12-27
        	描述：bbs内容
        -->
        <div class="bbs_wtf">
        	<div class="bbs_div1_wtf">
		    	<div class="bbs_div1">
					<a href="<%=path%>/newsctr/forum.htm">首页</a> >
					<a href="###">关于论坛</a> >
					<a href="###">机构设置</a>
				</div>
    		</div>
        	<div class="bbs">
        		<img class="bbs_img1" src="<%=path%>/images/pc/bbs_01.jpg" />
        		<div class="bbs_div2">
        			<div class="bbs_div2_div1">
        				<img class="bbs_div2_div1_img1" src="<%=path%>/images/pc/bbs_02.jpg" />
        				<a class="bbs_div2_div1_a2" href="<%=path%>/basicctr/pcbbsbasic.htm?id=1">论坛概况</a>
        				<a class="bbs_div2_div1_a1" href="###">机构设置</a>
        				<a class="bbs_div2_div1_a2" href="<%=path%>/newsctr/pcnewslist.htm?newsType=4">理事动态</a>
        			</div>
        			<div class="bbs_div2_div2">
        				<div class="bbs_div2_div2_div1">机构设置</div>
        				<!--机构设置内容-->
        				<div class="bbs_div2_div2_div3">
        					<c:forEach items="${list}" var="organzies">
        					<div class="bbs_div2_div2_div3_div1">
        						<a class="bbs_div2_div2_div3_div1_a1" href="###">${organzies.orgName}</a>
        						<div class="bbs_div2_div2_div3_div1_div1">
        						<c:forEach items="${organzies.listContent}" var="name">
        							<span>${name}</span>
        						</c:forEach>
        						</div>
        					</div></c:forEach>
        				</div>
        			</div>
        			<div class="clearboth"></div>
        		</div>
      		</div>
        </div>
      <!--
        	作者：offline
        	时间：2016-12-31
        	描述：机构设置弹框
        -->
        <div class="lishihui">
        	<div class="lishihui_div1">
        		<img class="lishihui_div1_img1" src="<%=path%>/images/pc/login_01.jpg" />
        		<div class="lishihui_div1_div1">理事会</div>
        		<div class="lishihui_div1_div2">
        			
        		</div>
        		<div class="clearboth"></div>
        	</div>
        </div>
      	<!--     底部公共部分   -->
      	<%@include file="../partpage/bottom.jsp"%>
</body>
<script type="text/javascript">
//操作：type:1添加；2编辑；3删除
function manage(type,id,name){
	 
	if(type==1){
		$(".bbs3_div1_div3").css({"display" : "block"});
		$("#orgName").val("");
		$("#markManage").val(1);
		$("#orgId").val(0);
		
	}else if(type==2){
		$(".bbs3_div1_div3").css({"display" : "block"});
		$("#markManage").val(2);
		$("#orgId").val(id);
		$("#orgName").val(name);
		
	}else if(type==3){
		if(window.confirm("确定要删除该机构吗？")){
			$("#markManage").val(3);
			$("#orgId").val(id);
			$("#sform").submit();
         } 
	}
}
//提交验证
function submitCheck(){
	//验证管理员登录
	var sysuserId=$("#sysuserId").val();
	if(sysuserId.length==0){
		alert("管理员登录失效，请重新登录");
		window.open("<%=path%>/login/beforelogin.htm");
			return false;
		}
		//验证机构
		var orgName = $("#orgName").val();
		if (orgName.length == 0) {
			alert("机构名称不能为空！");
			$("#orgName").focus();
			return false;
		}
		return true;

	}
</script>
</html>

